<?php

class SF_Vendordiscount_Model_Source_Vendor extends Varien_Object
{
	public function getAllOptions()
    {
    	$result = array();
    	$vendorData = Mage::getModel('vendors/vendor')->getCollection();
    	foreach($vendorData as $vendor){
           $result[] = array(
                'label' => $vendor->getVendorId(),
                'value' => $vendor->getEntityId(),
            ); 
    	}
    	return $result;
    }
}